package com.hhd.pdf.components.sort;

import org.springframework.stereotype.Component;

import java.util.Map;

@Component
public class DefaultSortBean implements SortBean<Object> {

    @Override
    public Comparable<Object> getSortIndex(Map<String, Object> args) {
        return (Comparable<Object>) args.get("sortField");
    }

    @Override
    public String getSortBeanName() {
        return "default";
    }
}
